#!/usr/bin/env python
# coding=utf-8

import logging

logging.basicConfig(level=logging.DEBUG)


def foo(s):
    logging.info("hello world")
    return 10 / int(s)


def bar(s):
    return foo(s) * 2


def main():
    try:
        bar('0')
    except StandardError, e:
        logging.exception(e)


if __name__ == '__main__':
    foo(1)
    print 'END'
